package com.mdd.admin.controller.generate;

import com.mdd.admin.service.generate.GenerateService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("generateController")
@RequestMapping("/api")
public class GenerateController {

	@Resource
	private GenerateService generateService;

	@ApiOperation("生成100个用户")
	@PostMapping("/generateUser")
	public void generateUser() {
		generateService.generateUser();
	}

	@ApiOperation("生成评论")
	@PostMapping("/generateComment")
	public void generateComment() {
		generateService.generateComment();
	}
}
